package com.ruoyi.system.domain.api;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户推荐收益对象 u_user_referee_earning
 * 
 * @author ruoyi
 * @date 2022-04-22
 */
public class UUserRefereeEarning extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 收益人ID */
    @Excel(name = "收益人ID")
    private Long refereeUserId;

    /** 收益人奖励 */
    @Excel(name = "收益人奖励")
    private BigDecimal refereeEarning;

    /** 用户收益 */
    @Excel(name = "用户收益")
    private BigDecimal userEarning;

    /** 1推荐奖励 2团队奖励 3代理奖励 4平级奖 */
    @Excel(name = "1推荐奖励 2团队奖励 3代理奖励 4平级奖")
    private Integer earnType;

    /** 盈利比列 */
    @Excel(name = "盈利比列")
    private BigDecimal rate;

    /** 收益币种名称 */
    @Excel(name = "收益币种名称")
    private String coinName;

    /** 0未发放 1已发放 */
    @Excel(name = "0未发放 1已发放")
    private Integer isOpen;

    private String userPhone;

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setRefereeUserId(Long refereeUserId) 
    {
        this.refereeUserId = refereeUserId;
    }

    public Long getRefereeUserId() 
    {
        return refereeUserId;
    }
    public void setRefereeEarning(BigDecimal refereeEarning) 
    {
        this.refereeEarning = refereeEarning;
    }

    public BigDecimal getRefereeEarning() 
    {
        return refereeEarning;
    }
    public void setUserEarning(BigDecimal userEarning) 
    {
        this.userEarning = userEarning;
    }

    public BigDecimal getUserEarning() 
    {
        return userEarning;
    }
    public void setEarnType(Integer earnType) 
    {
        this.earnType = earnType;
    }

    public Integer getEarnType() 
    {
        return earnType;
    }
    public void setRate(BigDecimal rate) 
    {
        this.rate = rate;
    }

    public BigDecimal getRate() 
    {
        return rate;
    }
    public void setCoinName(String coinName) 
    {
        this.coinName = coinName;
    }

    public String getCoinName() 
    {
        return coinName;
    }
    public void setIsOpen(Integer isOpen) 
    {
        this.isOpen = isOpen;
    }

    public Integer getIsOpen() 
    {
        return isOpen;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("refereeUserId", getRefereeUserId())
            .append("refereeEarning", getRefereeEarning())
            .append("userEarning", getUserEarning())
            .append("remark", getRemark())
            .append("earnType", getEarnType())
            .append("rate", getRate())
            .append("coinName", getCoinName())
            .append("createTime", getCreateTime())
            .append("isOpen", getIsOpen())
            .toString();
    }
}
